package com.gs.core.domain;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue(value="PRINT")
public class PrintAction extends Action{
	private String location;
	private String deviceType;
	
	private PrintAction(String location, String deviceType){
		this.location = location;
		this.deviceType = deviceType;
	}
	
	public static PrintAction create(String location,String deviceType){
		return new PrintAction(location, deviceType);
	}
	
	@Column(name="LOCATION")
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	@Column(name="DEVICE_TYPE")
	public String getDeviceType() {
		return deviceType;
	}
	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}
	
}
